<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="<c:url value="/css/style.css" />" rel="stylesheet"
	type="text/css" media="screen" />
<script src="<c:url value="/js/jquery-1.9.1.min.js" />"></script>
<title>課程介紹</title>

<style type="text/css">
#page1{
 	width:1200px;
 	border-radius:45px;
 	-moz-border-radius:45px;
 	-webkit-border-radius:45px;
 	margin: 0 auto;
	padding: 0;
	border-width:rough;
	border-style:dashed;
	border-color:#5500DD;
	background-color:#DDDDFF;
 	}
#t1 {
	width: 1150px; 
	margin:30px 0 30px 20px;
	border-width:rough;
	border-style:solid;
	border-color:#9F88FF;
	border-radius:5px;
 	-moz-border-radius:5px;
 	-webkit-border-radius:5px;
 	box-shadow:5px 5px 5px #AAAAAA;
}


tr{
	border: 0.5px solid #888888;
	border-radius:5px;
 	-moz-border-radius:5px;
 	-webkit-border-radius:5px; 
}

td,th { 
	border: 0.5px solid #888888;
}

thead {
	border-bottom: 3px double #9F88FF;
	background-color: #9F88FF;
	border-radius:20px;
 	-moz-border-radius:20px;
 	-webkit-border-radius:20px;
}

a:link {
	text-decoration: none
}

a:visited {
	color: blue
}

a:hover {
	text-decoration: underline;
	color: blue
}

a:active {
	color: red
}
</style>

</head>
<body>
	<!-- 引入共同的頁首 -->
	<c:set var="funcName" value="IND" scope="session" />
	<jsp:include page="/top/top.jsp" />

	<!-- 從這裡開始寫 -->
<div id="page1">
	<c:if test="${not empty manager}">
                <center>
                	<a href="<c:url value='/course/DisplayCourse?type=MANAGER' />">
                	<input type="button" value="課程維護">
                	</a>
                </center>
			</c:if>
	 <div style="padding:30px 0 0 500px">   
	 <b><font style="font-size:1cm;color:#0000AA;">課程介紹</font></b> 
	 </div>
	<table id="t1">
		<thead>
			<tr height='36'>
				<th align="center">課程名稱</th>
				<th align="center">講師</th>
				<th align="center">開始日期</th>
				<th align="center">結束日期</th>
				<th align="center">人數</th>
				<th align="center">地點</th>
				<th align="center">費用</th>
				<th align="center">課程介紹</th>
			</tr>

		</thead>


		<c:forEach varStatus="stVar" var="aBookBean" items="${products_DPP}">
			<tr height='36' bgcolor="#FFFFFF" align="left">
				<TD>${aBookBean.cname}</TD>
				<TD>${aBookBean.cteacher}</TD>
				<TD>${aBookBean.cstartdate}</TD>
				<TD>${aBookBean.cenddate}</TD>
				<TD>${aBookBean.cpeople}</TD>
				<TD>${aBookBean.cplace}</TD>
				<TD>${aBookBean.cprice}</TD>
				<TD><a
					href="<c:url value='/course/OneCourse?cid=${aBookBean.cid}' />">詳細資料</a></TD>

			</TR>

		</c:forEach>
	</table>

</div >
<!-- 	<a href="javascript:history.back()">上一頁</a> -->
<!-- 	<a href="javascript:history.forward()">下一頁</a> -->


	<!-- 寫到這裡結束 -->
	 <c:if test="${not empty success }">
		<script type="text/javascript">
		$(function() {
			alert("報名成功!!");
		})
		</script>
		</c:if>
		<c:if test="${not empty mail }">
		<script type="text/javascript">
		$(function() {
			alert("已寄發課程通知至email!!");
		})
		</script>
		</c:if>
		
	<div id="footer-wrapper">
		<div id="footer">
			<p>
				Copyright (c) 2010 Sitename.com. All rights reserved. Design by <a
					href="http://www.freecsstemplates.org/" rel="nofollow">FCT</a>.
			</p>
		</div>
	</div>
</body>
</html>